package com.jielihaofeng.chat.convert;

import com.jielihaofeng.chat.entity.ChatGroupEntity;
import com.jielihaofeng.chat.entity.ChatGroupLocalCacheEntity;
import com.jielihaofeng.chat.vo.ChatGroupVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 群组表
*
* @author 借力好风 949394048@qq.com
* @since 1.0.0 2022-07-22
*/
@Mapper
public interface ChatGroupConvert {
    ChatGroupConvert INSTANCE = Mappers.getMapper(ChatGroupConvert.class);

    ChatGroupEntity convert(ChatGroupVO vo);

    ChatGroupVO convert(ChatGroupEntity entity);

    List<ChatGroupVO> convertList(List<ChatGroupEntity> list);

    ChatGroupLocalCacheEntity convert2LocalCacheEntity(ChatGroupEntity entity);

}